package com.woniu01;
import java.util.Scanner;

public class Test01 {
    public static void main(String[] args) {
//        Scanner sc = new Scanner(System.in);
//        while (true){
//            System.out.println("输入qq号码");
//            String password = sc.next();
//            char ch = password.charAt(0);
//            if (ch != '0' && password.length()<=15 &&password.length()>=5) {
//                System.out.println("验证成功");
//                break;
//            }else {
//                System.out.println("不符合要求，请重新输入");
//            }
//        }

        String zz = "^[1-9]\\d{4-14}$";
        String qq ="123456";
        boolean matches = zz.matches(qq);
        System.out.println(matches);
    }
}
